package com.cicadamob.contact.api.Utils.BizApi;
import com.cicadamob.contact.api.Utils.StringUtil;

import android.content.Context;
import android.content.Intent;

public class SearchContactsUtil {
	private Context context;
	public static final String WHICH_SEARCH = "which_search";// 搜索个人？同事？群组？群组成员？全部？
	public static final String GROUP_ID = "group_id";// 群组id
	//public static final String IS_SHOW_SELECTOR = "is_show_selector";// 是否显示选人组件
	public static final int SEARCH_PERSON = 1;// 搜索个人通讯录
	public static final int SEARCH_COMPANY_PERSON = 2;// 搜索同事通讯录
	public static final int SEARCH_CLIENT_PERSON = 3;// 搜索客户通讯录
	public static final int SEARCH_GROUP = 4;// 搜索群组
	public static final int SEARCH_GROUP_MEMBER = 5;// 搜索群组成员
	public static final int SEARCH_ALL = 6;// 搜索全部
	public static final int SEARCH_GROUPID_MEMBER = 7;// 搜索某群组的成员，指定群组id
	//COMPLETED是通过handler回传
	public static final int SEARCH_PERSON_COMPLETED = 8;// 搜索个人通讯录 Complete
	public static final int SEARCH_COMPANY_PERSON_COMPLETED = 9;// 搜索同事通讯录
	public static final int SEARCH_CLIENT_PERSON_COMPLETED = 10;// 搜索客户通讯录
	public static final int SEARCH_GROUP_COMPLETED = 11;// 搜索群组
	public static final int SEARCH_GROUP_MEMBER_COMPLETED = 12;// 搜索群组成员
	public static final int SEARCH_ALL_COMPLETED = 13;// 搜索全部
	public static final int SEARCH_GROUPID_MEMBER_COMPLETED = 14;// 搜索某群组的成员，指定群组id
	public static final int SEARCH_COMPLETED = 15;// 搜索任务完毕
	public SearchContactsUtil(Context context) {
		super();
		this.context = context;
	}

	private static SearchContactsUtil instance;
    public static SearchContactsUtil getInstnce(Context context){
    	if(instance==null){
    		instance=new SearchContactsUtil(context);
    	}
		return instance;	
    }
}
